package com.zyit.controller;

import com.baomidou.mybatisplus.annotation.TableId;
import com.zyit.pojo.Department;
import com.zyit.service.DepartmentService;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.tags.Tag;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@Tag(name = "科室管理")
@RestController
@RequestMapping("/admin/dept")
public class DepartmentController {
    @Autowired
    private DepartmentService departmentService;


    @Operation(summary = "查询大科室")
    @GetMapping("/big")
    public List<Department> findBigDepartment(String hoscode){
        return departmentService.findBigDepartments(hoscode);
    }

}
